﻿@inherits AdminCompontentBase
<div @ref="Ref">
    <SSimpleModal Value="@_visible" ValueChanged="HandleVisibleChanged" Title="@T("Permission.CreateReceiverGroup")" HeaderClass="mr-4" BodyStyle="height: 728px;" SaveText="@T("Submit")" OnCancel="HandleCancel" OnSave="async() => await Throttle(HandleOk)">
        <ChildContent>
            <MForm Model="_model" EnableValidation EnableI18n @ref="_form" Class="full-height pt-3">
                <MRow>
                    <MCol Class="pt-0 mt-2">
                        <STextField @bind-Value="_model.DisplayName"
                                          Label="@T("DisplayName.ReceiverGroupDisplayName")">
                        </STextField>
                    </MCol>
                </MRow>
                <ReceiverSelect @ref="_ReceiverSelect" @bind-Value="_model.Items"></ReceiverSelect>
                <MInput @bind-Value="_model.Items" />
                <MRow Class="mt-6">
                    <MCol>
                        <MTextarea @bind-Value="_model.Description"
                                   Label="@T("DisplayName.ReceiverGroupDescription")"
                                   Outlined
                                   HideDetails="@("auto")"
                                   Rows=4>
                        </MTextarea>
                    </MCol>
                </MRow>
            </MForm>
        </ChildContent>
    </SSimpleModal>
</div>